package org.itboys.mobile.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Auther: 罗尧坤
 * Date: 2018/7/17
 * Description: 新闻实体类
 */

@Entity(value = "SundayNews", noClassnameStored = true)
public class SundayNews extends BaseMongoEntity {
    //属性
    private String  title;//新闻标题
    private String  part;//栏目
    private String  text;//新闻内容
    private String  defaultImage;//新闻图片
    private Integer isRecommend;//是否推荐, 0: 不推荐, 1: 推荐

    private String link;//链接

    //无参构造器
    public SundayNews() {
    }

    //全参构造器
    public SundayNews(String title, String part, String text, String defaultImage) {
        this.title = title;
        this.part = part;
        this.text = text;
        this.defaultImage = defaultImage;
    }

    //getter, setter

    public String getPart() {
        return part;
    }

    public void setPart(String part) {
        this.part = part;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getdefaultImage() {
        return defaultImage;
    }

    public void setdefaultImage(String defaultImage) {
        this.defaultImage = defaultImage;
    }

    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }
}
